package MULE.Model;

import java.awt.Color;

import MULE.Model.Logic.MapLogic;

/**
 * Represents the Town tile.
 * 
 * @author jstep
 * @author Aaron Englebardt version 1.1 10.16.2013
 * 
 */
public class Town extends Tile {

	/**
	 * Creates a new Town tile at the specified coordinates.
	 * 
	 * @param x
	 *            X-coordinate of the tile.
	 * @param y
	 *            Y-coordinate of the tile.
	 */
	public Town(int x, int y) {
		super(x, y);
		this.backgroundColor = Color.WHITE;
		this.setToolTipText("Town");
		// Set this tile's action command so that listeners can identify it.
		String actionCommand = MapLogic.ActionCommand.ENTER_TOWN.toString();
		this.setActionCommand(actionCommand);
	}

	/**
	 * Returns false. The Town is not purchasable.
	 * 
	 * @return False.
	 */
	public boolean isPurchasable() {
		return false;
	}

	/**
	 * Returns the town's production.
	 * 
	 * @return Returns zero resources.
	 */
	Inventory getProduction() {
		return new Inventory(0, 0, 0, 0, 0);
	}
}
